<!DOCTYPE HTML>
<html>
    <body class='yui3-skin-sam'>
        <button id="my-button" class="yui3-button">my button</button>

        <script type="text/javascript" src="../../../../build/yui/yui.js"></script>
        <script type="text/javascript">

        YUI({
            filter: 'raw'
        }).use('button-core', function(Y) {

            var button = new Y.ButtonCore({
                host: Y.one('#my-button')
            })

            button.getNode().on('click', function(){
                Y.log('a');
            });

        });
        </script>
    </body>
</html>
